/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: patricio caceres
 * License Type: Evaluation
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_tipoanotacionDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression ta_id_tipoanotacion;
	public final StringExpression ta_descripcion;
	
	public Tan_tipoanotacionDetachedCriteria() {
		super(orm.Tan_tipoanotacion.class, orm.Tan_tipoanotacionCriteria.class);
		ta_id_tipoanotacion = new IntegerExpression("ta_id_tipoanotacion", this.getDetachedCriteria());
		ta_descripcion = new StringExpression("ta_descripcion", this.getDetachedCriteria());
	}
	
	public Tan_tipoanotacionDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tan_tipoanotacionCriteria.class);
		ta_id_tipoanotacion = new IntegerExpression("ta_id_tipoanotacion", this.getDetachedCriteria());
		ta_descripcion = new StringExpression("ta_descripcion", this.getDetachedCriteria());
	}
	
	public Tan_anotacionDetachedCriteria createTan_anotacionCriteria() {
		return new Tan_anotacionDetachedCriteria(createCriteria("ORM_Tan_anotacion"));
	}
	
	public Tan_tipoanotacion uniqueTan_tipoanotacion(PersistentSession session) {
		return (Tan_tipoanotacion) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tan_tipoanotacion[] listTan_tipoanotacion(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tan_tipoanotacion[]) list.toArray(new Tan_tipoanotacion[list.size()]);
	}
}

